 
const { uploadFiles } = require("../utils/upload");

// 轻忽更改
async function upload(req, res) {
    let images = uploadFiles();
    images(req, res, (err) => {
        if (err) {
            console.log("上传失败");
        } else {
            console.log(req.files);
            res.send({
                status:1,
                message:"上传成功",
                data:req.files.map(item =>item.filename),
            })
        }
    })
 }
module.exports = { upload };
// ------------------以上内容不要更改